package com.shop.cereshop.app.dl.logic.domain;

import java.io.Serializable;
import java.math.BigDecimal;

public class CereProductSku implements Serializable {
    private Long skuId;

    private Long productId;
    private CereShopProduct shopProduct;

    public CereShopProduct getShopProduct() {
        return shopProduct;
    }

    public void setShopProduct(CereShopProduct shopProduct) {
        this.shopProduct = shopProduct;
    }

    private String sku;

    private BigDecimal price;

    private BigDecimal originalPrice;

    private Integer stockNumber;

    private Integer total;

    private BigDecimal weight;

    private String skuImage;

    private Boolean style;

    private String createTime;

    private String updateTime;

    private static final long serialVersionUID = 1L;

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku == null ? null : sku.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Integer getStockNumber() {
        return stockNumber;
    }

    public void setStockNumber(Integer stockNumber) {
        this.stockNumber = stockNumber;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public String getSkuImage() {
        return skuImage;
    }

    public void setSkuImage(String skuImage) {
        this.skuImage = skuImage == null ? null : skuImage.trim();
    }

    public Boolean getStyle() {
        return style;
    }

    public void setStyle(Boolean style) {
        this.style = style;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", skuId=").append(skuId);
        sb.append(", productId=").append(productId);
        sb.append(", sku=").append(sku);
        sb.append(", price=").append(price);
        sb.append(", originalPrice=").append(originalPrice);
        sb.append(", stockNumber=").append(stockNumber);
        sb.append(", total=").append(total);
        sb.append(", weight=").append(weight);
        sb.append(", skuImage=").append(skuImage);
        sb.append(", style=").append(style);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}